package org.study.dynamic.ds.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.study.dynamic.ds.constant.DsNameConstants;
import org.study.dynamic.ds.model.DsUser;

import java.util.List;

/**
 * 类的描述
 *
 * @author Administrator
 * @date 2021-11-29
 */
@DS(DsNameConstants.USER_DS)
public interface UserMapper extends BaseMapper<DsUser> {
    @Select("select * from t_user")
    List<DsUser> selectUser();

    @DS(DsNameConstants.USER_DS1)
    @Select("select * from t_user")
    List<DsUser> selectUserDs1();

    @DS(DsNameConstants.USER_DS2)
    @Select("select * from t_user")
    List<DsUser> selectUserDs2();

    @DS(DsNameConstants.XUGU)
    @Select("select * from t_user")
    List<DsUser> selectUserDsXugu();
}
